<!DOCTYPE html>
<html>
<head>
<title>-🔞-</title>
<!--🈲-止-转-发-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>

<script type="text/javascript" src="/static/admin/js/jquery.min.js?v=2.1.4" ></script>
 <!--<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>-->

<script src="/ckplayer/DPlayer.min.js?v=2.1.8" ></script>

<link href="/ckplayer/DPlayer.min.css?v=2.1.8" rel="stylesheet">

<link href="/static/index/weui.min.css" rel="stylesheet">

<link href="/static/index/jquery-weui.css" rel="stylesheet" >

<script src="/static/admin/js/layer/layer.js"></script>

<link href="/static/admin/js/layer/skin/default/layer.css" rel="stylesheet">

<script language="javascript" src="/static/index/base64.js"></script>


<script>
    $(function(){
       function onBridgeReady() {
       WeixinJSBridge.call('hideOptionMenu');
       }

       if (typeof WeixinJSBridge == "undefined") {
       if (document.addEventListener) {
       document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
       } else if (document.attachEvent) {
       document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
       document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
       }
       } else {
       onBridgeReady();
       }
   });
</script>

<style>
li{ list-style-type:none;cursor:pointer;}

.login_coty{ margin:0 auto; width:100%;;  line-height:20px; font-size:12px;padding-top: 3px; }

@media screen and (max-width:900px) {

a {
  text-decoration:none;
    color: #fff;
}
    .top_menu_list{
      margin-top: 0px;
      text-align: center;
      
      background-image: linear-gradient(to right ,#d66b80,#e66982);
    }
    .btn.cur {
      color:#000;
      background-image: linear-gradient(#F9C0CC, #F9C0CC);
      font-weight: bold;
      border-radius:5px;
     
    }
    .btns {
   
      width: auto;
      border: none;
      float: left;
      display: block;
      overflow: hidden;
      padding: 0 0.4rem;
      line-height: 24px;
      font-size: 17px;
      color:#bd1e82;
      background-image: linear-gradient(#F9C0CC, #F9C0CC);
      font-weight: bold;
    }
    
    p {
        margin: 0;padding: 0;
    }
    
    .fenlei{
        width: auto;
    }
    
    .fenlei a{
        width: auto;
        display: block;
        font-size: 19px;
        margin-top: 3px;
        float: left;
        width: 14%;
        font-weight:bolder;
    }
   
    li .cover {
    }
    li .tag {
      background-image: linear-gradient(#F9C0CC, #F9C0CC);
      font-size: 11px;
      padding: 0px 10px;
      display: block;
      text-align: center;
      color: #FFF;
      line-height: 14px;
    }
    #dg .item{
      line-height: 34px;
      padding: 0 10 0 10;
      margin: 0 10px;
      text-align: center;
      display: block;
    }
    .clamp-2 {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    /* 弹出 */
    .weui-popup__modal {
      width: 96vw;
      left: 2vw;
      height: 420px;
      top: 15vh;
      background:rgba(0,0,0,0.3);
    }
    .weui-popup__modal .content { 
      background-size: cover;
      background-position: center;
      width: 100%;
      height: 260px;
      background-repeat: no-repeat;
      background-color: #000;
    }
    .weui-popup__modal #dialog-image {
      width: 100%;
      height: 100%;
    }
     .weui-popup__modal .footers {
      display: flex;
      justify-content: space-between;
      flex-wrap: nowrap;
      width: 96vw;
    }
    .weui-popup__modal .footerss {
      display: flex;
      background-color: #fff;
      justify-content: space-between;
      flex-wrap: nowrap;
      width: 96vw;
    }
    
    
    .weui-popup__modal .footer {
      display: flex;
      background-color: #fff;
      justify-content: space-between;
      flex-wrap: nowrap;
    }
    .weui-popup__modal .footer p {
        
      line-height: 50px;
      width: 50%;
      text-align: center;
      font-size: 14px;
      color: #222;
      background-color: #f2f2f2;
    }
    .weui-popup__modal .footer #pay {
      color: #fff;
     
    }
    
    .weui-popup__modal .footerss a {
      line-height: 50px;
      width: 50%;
      text-align: center;
      font-size: 14px;
      color: #222;
      background-color: #f2f2f2;
      display: block;
    }
    .weui-popup__modal .footerss #pay {
      color: #fff;
      background-image: linear-gradient(#aaceff, #6cb1ff);
    }
    .div_1{
        width: 100%;
        height:28px;
        line-height:28px;
    }
    .form-control{
        outline-style: none ;
        border: 0px;
        border: 1px solid #ccc;
        border-radius: 7px;
        padding: 5px 8px;
        width: 87%;
        border-color: #66afe9;
        outline: 0;
        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
    }
    
    </style>
 
</head>
<body style="max-width:460px; margin:0 auto;font-weight:bold;">

{if !empty($tui['url'])}
	<div class="rich_media_content dplayer dplayer-no-danmaku dplayer-mobile dplayer-arrow" id="dplayer" style="width: 100%; height:160px;"></div>
{/if}


  <!--<a href="/index/index/tousu?uopenid={$uopenid}" style="position:fixed;display:block;bottom:20%;height:100px;right:8px;width:30px;z-index:999;  background-image: linear-gradient(to right , #6240e6,#ad40e6); border-radius: 5px;text-align:center;color: #FFF;">-->
  <!--     问题反馈-->
  <!-- </a>-->

    <div class="top_menu_list" style="height: 137px;width:100%;">
       	<div class="fenlei" id="">
            <a href="javascript:void(0);" data-mid="0" class="btn cur">全部</a>
            <a href="javascript:void(0);" data-mid="30" class="rehuo btn ">乱伦</a>
            <a href="javascript:void(0);" data-mid="31" class="rehuo btn ">国产</a>
            <a href="javascript:void(0);" data-mid="32" class="rehuo btn ">三级</a>
            <a href="javascript:void(0);" data-mid="33" class="rehuo btn ">幼女</a>
            <a href="javascript:void(0);" data-mid="34" class="rehuo btn ">人兽</a>
            <a href="javascript:void(0);" data-mid="35" class="rehuo btn ">破处</a>
            <a href="javascript:void(0);" data-mid="36" class="btn ">另类</a>
            <a href="javascript:void(0);" data-mid="37" class="btn ">巨乳</a>
            <a href="javascript:void(0);" data-mid="38" class="btn ">制服</a>
            <a href="javascript:void(0);" data-mid="39" class="btn ">剧情</a>
            <a href="javascript:void(0);" data-mid="40" class="btn ">人妻</a>
            <a href="javascript:void(0);" data-mid="41" class="rehuo btn ">强奸</a>
            <a href="javascript:void(0);" data-mid="42" class="btn ">萝莉</a>
            <a href="javascript:void(0);" data-mid="43" class="btn ">群交</a>
            <a href="javascript:void(0);" data-mid="44" class="btn ">欧美</a>
            <a href="javascript:void(0);" data-mid="50" class="btn ">精选</a>
            <a href="javascript:void(0);" data-mid="46" class="btn ">偷拍</a>
            <a href="javascript:void(0);" data-mid="47" class="btn ">动漫</a>
            <a href="javascript:void(0);" data-mid="48" class="btn ">野战</a>
            <a href="javascript:void(0);" data-mid="49" class="btn ">日韩</a>
        </div>
        <a class="btns item btn cur" href="javascript:void(0);" data-mid="158" style="display:block;float:left;height:30px;width:15%;background-color:Yellow;color:#000;font-size: 17px;font-weight: 900;border-radius: 5px;text-align:center;line-height:30px;margin-left:9px;margin-top:4px">新片</a>
        <input type="text" id="sousuo" style="top:80%;margin-top:4px;padding: 6px;border-radius:7px;border: 1px solid #ccc;width: 40%;font-size: 14px;font-weight: 400;" placeholder="请输入视频关键字" name="sousuo" value="">
        <a href="javascript:void(0);" data-mid="1001" class="sousuo" style="padding-left:4px;font-size:18px;">搜索<span style="padding-left:6px;color:#8DEBFF"></span></a>
        <a href="javascript:void(0);" data-mid="1000" class="btn cur" style="display:block;float:right;height:30px;width:15%;background-color:#F9C0CC;color:#000;font-size: 17px;font-weight: 900;border-radius: 5px;text-align:center;line-height:30px;margin-top:4px;margin-right:5px;">已购</a>
    </div>

	<div class="login_coty" style="background:#fff;width: 100%;" >
      <ul style="width: 100%; background:#FFFFFF;padding-left:0;margin:0px;display: -webkit-flex; -webkit-flex-wrap: wrap; display: flex; flex-wrap: wrap;" id="article_list">
      </ul>
      	<div style="clear: both"></div>
       	<div class="jiaz" style="display: none;">正在加载中...</div>
    </div>






<div id="pay_dialog" class="weui-popup__container"  style="z-index:99999999">
  <div class="weui-popup__overlay" style="background-color: rgba(0, 0, 0, 0.9)" ></div>
  
  <div class="weui-popup__modal" style="height:100%;top: 10vh;">
    <div class="container">
     <div class="content" id="content" style="border:1px solid #FFFFFF; width: 95.5vw;height: 270px;border-radius:12px 12px 0 0;">
           <img id="beijing" src=""  data-src="" width="100%" height="270" style="border-radius:10px 10px 0 0;"/>
      </div>
       <div class="footers" style="width:100%">
           <p id="name" class="close-popups" style="height:100%;background-image: linear-gradient(to right ,#d66b80,#e66982);color:#FFFFFF;font-size:19px;width:100%;overflow: hidden;border-radius:0 0 10px 10px;"></p>
      </div>
      
            {if $btmoney >= 30 && $is_baotian != 1}
         <div class="footer" style="background:rgba(0,0,0,0.9);margin-top:5px;border-radius:10px;">
          
        
       
        <p id="pay" rel="payButton" style="font-size:20px;background-color:red; background-image: linear-gradient(to right ,Yellow,Yellow);color:red; width: 100%;margin: auto;height:60px;border-radius:10px;line-height:60px"></p>
     
      </div>
        <div class="footer" style="background:rgba(0,0,0,0.9);margin-top:5px;border-radius:10px;">
        
        <p id="baotian" rel="payButton" style="font-size:20px;background-color:red; background-image: linear-gradient(to right ,red,red);color:#000; width: 100%;margin: auto;height:60px;border-radius:10px;line-height:60px"></p>
     
      </div>
          
          {else}
          
            <div class="footer" style="background:rgba(0,0,0,0.9);margin-top:5px;border-radius:10px;">
          
        
       
        <p id="pay" rel="payButton" style="font-size:20px;background-color:red; background-image: linear-gradient(to right ,Yellow,Yellow);color:red; width: 100%;margin: auto;height:60px;border-radius:10px;line-height:60px"></p>
     
      </div>
          
          {/if}
      
      
       <div class="footerss" style="background:rgba(0,0,0,0.9);margin-top:5px;border-radius:10px;">
      
          <a id="cancel" class="close-popup"  href="javascript:void(0);" style="width:100%;font-size:15px;position:absolute;background:rgba(0,0,0,0.2);background-image: linear-gradient(to right ,#565454,#565454);color:#ffff;border-radius:10px;">取消</a>
     
      </div>
    
         
    </div>
  </div>
</div>





<script type="text/javascript" src="/ckplayer/ckplayer.js"></script>
{if !empty($tui['url'])}
<script type="text/javascript">

var dpurl = "{$tui['url']}";
var dp = new DPlayer({
    container: document.getElementById('dplayer'),
    screenshot: false,
    autoplay: false,                                                   // 可选，自动播放视频，不支持移动浏览器
    theme: '#FADFA3',                                                  // 可选，主题颜色，默认: #b7daff
    loop: false,                                                        // 可选，循环播放音乐，默认：true
    hotkey: false,                                                      // 可选，绑定热键，包括左右键和空格，默认值：true
    preload: false, 
    video: {
        url: dpurl,
        pic: '/ckplayer/mianfei.jpg',
        //thumbnails: 'http://static.smartisanos.cn/pr/img/video/video_03_cc87ce5bdb.jpg',
    }
  
});

</script>
{/if}
<script type="text/javascript">
     $(window).scroll(function (event) {
        var wScrollY = window.scrollY; // 当前滚动条位置  
        var wInnerH = window.innerHeight; // 设备窗口的高度（不会变）  
        var bScrollH = document.body.scrollHeight; // 滚动条总高度  
          if(heid != null && wScrollY > 200 && wScrollY < 400){
             $(".login_coty").css("padding-top","37%");
             $(".rich_media_content").css("display","none");
             $(".top_menu_list").css("position","fixed");
             $(".top_menu_list").css("z-index","999");
             $(".top_menu_list").css("position","fixed");
         }
         
    });
           
        
            let page = 2;
            var type = 0;
            var flag = 0;
            var lock = 0;
            var userid  = '{$userid}';
            var ddh     = '{$ddh}';
            var uopenid = '{$uopenid}';
            var heid    = "{$tui['url']}";
            var sousuo  = "";
            var url     = "";
            var btmoney = '{$btmoney}';
            var isbaotian = '{$is_baotian}';
           
           
        
            
            var server_name = '{:url("shuju")}';
            var re_url = server_name;
            loadNav();
            
            function loadNav() {
                loadXMLDoc(2, page);
            }
            
            //顶部
            
            function backTop(){
               $(window).scrollTop(0);
            }
            
            //点击图片
         $(document).on('click', ".video-item", function(){
            
            if(type == 1000 || isbaotian == 1){
                
                let face = $(this).find('img').attr("src");
             
                url     = $(this).data('url');
                
                $("#name").text($(this).data('name'));
               
                $("#beijing").attr("src", face);
                $("#pay").text('免费观看');
                  window.location.href = url;
                // $("#pay_dialog").popup();
        
            }else{
                
           
                //- test1事件
                let face = $(this).find('img').attr("src");
                
               
                
               
              
                let money = $(this).data('money');
              
                url = $(this).data('url');
             
           
                $("#beijing").attr("src", face);
                $("#pay").text('付 款 '+money+' 元 观 看 影 片');
                
                 if(btmoney >= 30 && btmoney <=50){
                     $("#baotian").text('付 款 '+btmoney+' 元 包 天 全 免 费');
                }
               
                 $("#name").text($(this).data('name'));
                $("#pay_dialog").popup();
            }
         
         });
          
            //点击支付
        
            $("[rel^='payButton']").click(function(){
                $.closePopup();
                layer.msg('<span style="font-size:25px;color:#FF1493">支付中，请稍后。。。</span>', {
                    icon: 16,
                    shade: 0.01,
                });
               window.location.href = url;
            });
            
            $("#baotian").click(function() {
              window.location.href = url+"&is_baotian=1";
            });
            
            //点击分类
            
            $(document).on('click', ".btn", function () {
        
                 if(heid != null){
                     $(".rich_media_content").css("display","block");
                     $(".top_menu_list").css("position","");
                     $(".top_menu_list").css("z-index","9999999");
                     $(".login_coty").css("padding-top","2px");
                     $(".top_menu_list").css("height","137px");
                 }
                 
                arr=[];
                $(window).scrollTop(0);
                document.getElementById('sousuo').value='';
                sousuo = '';
                type = $(this).data('mid');
                $('.btn').removeClass('cur');
                $(this).addClass('cur');
                page = 1;
                loadXMLDoc(2, page);
          });
          
          
          $(document).on('click', ".btn1", function () {
        
                 if(heid != null){
                     $(".rich_media_content").css("display","block");
                     $(".top_menu_list").css("position","");
                     $(".top_menu_list").css("z-index","9999999");
                     $(".login_coty").css("padding-top","2px");
                     $(".top_menu_list").css("height","137px");
                 }
                 
                arr=[];
                $(window).scrollTop(0);
                document.getElementById('sousuo').value='';
                sousuo = '';
                type = $(this).data('mid');
                $('.btn').removeClass('cur');
                $(this).addClass('cur');
                page = 1;
                loadXMLDoc(2, page);
          });
            
            
            $(document).on('click', ".sousuo", function () {
     
     
              sousuo = $('input[name="sousuo"]').val();
              
              
              
              loadXMLDoc(2, page);
               
          });
          
            function preView(blob,element){
                let reader    = new FileReader();
                reader.readAsDataURL(blob);
                reader.onload = function(e) {
                    element.src = e.target.result;
                    element.style.display = "block";
                }
            }
            function jsReadFiles(blob,element) {
                var reader = new FileReader();
                // if(/image+/.test(blob.type)) {
                    reader.readAsArrayBuffer(blob);
                    reader.onload = function() {
                        var result  = new Blob([this.result.slice(4)], {type: 'image/jpeg'});
                        preView(result,element);
                    }
                // }
            }
            function resetImgUrl(imgObj,maxErrorNum){
                let xmlhttp=new XMLHttpRequest();
                xmlhttp.open("GET",imgObj.getAttribute("src2")+'_.jpg',true);
                xmlhttp.responseType = "blob";
                xmlhttp.onreadystatechange = function () {
                    if (xmlhttp.readyState == xmlhttp.DONE) {
                        if (xmlhttp.status == 200) {
                            jsReadFiles(xmlhttp.response,imgObj);
                            imgObj.onerror=null;
                        }
                    }
                };
                xmlhttp.send(null);
            }
            
          
            
            function loadXMLDoc(curr, tpage , searchname) {
               
                
                var re_parameters = '?userid=' + userid + '&ddh=' + ddh + '&type=' + type + '&uopenid=' + uopenid + '&sousuo=' + sousuo + '&page=' + page;
                var url = re_url + re_parameters;
                var xmlhttp;
                if (window.XMLHttpRequest) {
                    xmlhttp = new XMLHttpRequest();
                } else {
                    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                }
                <!--console.log("add begin");-->
                xmlhttp.onreadystatechange = function () {
                    if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                       
                        var res = JSON.parse(xmlhttp.responseText);
                         
                        if (res.length == 0) {
                            var lis = '<li style="text-align: center;margin-top:50px;width:100%;color:red"></li>';
                        } else {
                            var lis = '';
                            
                            if(type == 99999 || type == 99999){
                                
                                for (var i = 0; i < res.length; i++) {
                                        var data_info = res[i];
                                        var data = `<li style="max-width: 95%; min-width: 95%; margin: auto;margin-top:10px; flex: 1;" data-id="`+data_info.id+`" data-src="" data-money="`+data_info.money+`" data-name ="`+data_info.name+`" data-target="#pay_dialog" data-url="`+data_info.dwz+`" class="video-item">
                                        <div class="video_img" style="position:relative;background:black;border-radius:5px;"> 
                                         
                                           <div style="position: relative; width: 100%; height: 150px;">
                                              
                                              <img id="image01" class="cover" src="" src2="`+data_info.photo+`"  onerror='resetImgUrl(this,3)' data-src="" width="100%" height="150" style="background:black;display:none;border-radius:5px;"/>
                                              
                                            </div>
                                            <span class="tag" style="border-radius:5px;;padding: 0px 5px;font-size:5px;position: absolute;top: 0px;background:rgba(0, 0, 0, 0.3);word-spacing:0px;font-weight: normal">
                                          <span style="font-size:15px">▶</span>
                                         <span style="font-size:12px">`+data_info.times+`</span></span>
                                         
                                         <span class="tag" style="padding: 0px 5px;font-size:10px;border-radius:5px;position: absolute;top: 115px;background:rgba(0, 0, 0, 0.6);word-spacing:0px;font-weight: normal">已有`+data_info.d1+`<span style="color:#da3535;font-size:13px">`+data_info.money+`</span>元观看</span>
                                           <span class="tag" style="padding: 0px 5px;font-size:12px;position: absolute;top: 1px;background:rgba(0, 0, 0, 0.3);word-spacing:0px;font-weight: normal" >`+data_info.count+`</span>
                                        </div>
                                        <div class="video_title" style="font-size: 17px; overflow: hidden;border-radius:5px;">
                                            
                                          <p style="color: #FFFFFF;  border-radius:5px; background-image: linear-gradient(to right ,#d66b80,#e66982);font-size: 17px;font-weight:500;border: solid 1px 	#A9A9A9;display:block;height:42px" href='javascript: void(0);' class="clamp-2"><span>`+data_info.fuhao+`</span>`+data_info.name+`</p>
                                        </div>
                                      </li>`;
                                          lis += data;
                              
                                   }
                                
                            }else{
                                
                                   for (var i = 0; i < res.length; i++) {
                                        var data_info = res[i];
                                        var b = new Base64();
                                        var str = b.decode(data_info.name);
                                        var data = `<li style="max-width: 50%; min-width: 46%; margin: 0 1px 1px 1px; flex: 1;" data-id="`+data_info.id+`" data-src="" data-money="`+data_info.money+`" data-name ="`+str+`" data-target="#pay_dialog" data-url="`+data_info.dwz+`" class="video-item">
                                        <div class="video_img" style="position:relative;background:black;border-radius:5px;"> 
                                         
                                           <div style="position: relative; width: 100%; height: 130px;">
                                              
                                              <img id="image01" class="cover" src="" src2="`+data_info.photo+`"  onerror='resetImgUrl(this,3)' data-src="" width="100%" height="130" style="background:black;display:none;border-radius:5px;"/>
                                              
                                            </div>
                                            <span class="tag" style="border-radius:5px;;padding: 0px 5px;font-size:5px;position: absolute;top: 0px;background:rgba(0, 0, 0, 0.3);word-spacing:0px;font-weight: normal">
                                          <span style="font-size:15px">▶</span>
                                         <span style="font-size:12px">`+data_info.times+`</span></span>
                                        
                                         
                                         <span class="tag" style="padding: 0px 5px;font-size:10px;border-radius:5px;position: absolute;top: 115px;background:rgba(0, 0, 0, 0.6);word-spacing:0px;font-weight: normal">已有`+data_info.d1+`<span style="color:#da3535;font-size:13px">`+data_info.money+`</span>元观看</span>
                                           <span class="tag" style="padding: 0px 5px;font-size:12px;position: absolute;top: 1px;background:rgba(0, 0, 0, 0.3);word-spacing:0px;font-weight: normal" >`+data_info.count+`</span>
                                        </div>
                                        <div class="video_title" style="font-size: 17px; overflow: hidden;border-radius:5px;">
                                            
                                          <p style="color: #FFFFFF;  border-radius:5px; background-image: linear-gradient(to right ,#d66b80,#e66982);font-size: 17px;font-weight:500;border: solid 1px 	#A9A9A9;display:block;height:42px" href='javascript: void(0);' class="clamp-2"><span>`+data_info.fuhao+`</span>`+str+`</p>
                                        </div>
                                      </li>`;
                                          lis += data;
                              
                                   }
                                
                            }
                            
                         
                            
                            
                            
                        }
                        document.getElementById("article_list").innerHTML = lis;
                    }
                }
                
                xmlhttp.open("GET", url, true);
                xmlhttp.send();
            }
            
            
            
            

            function loadXMLDoc2(curr, page) {
              
                var re_parameters = '?userid=' + userid + '&ddh=' + ddh + '&type=' + type + '&uopenid=' + uopenid + '&sousuo=' + sousuo + '&page=' + page;
                var url = re_url + re_parameters;
                
                var xmlhttp;
                if (window.XMLHttpRequest) {
                    xmlhttp = new XMLHttpRequest();
                } else {
                    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                }
                console.log("add begin");
                xmlhttp.onreadystatechange = function () {
                    if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                        var res = JSON.parse(xmlhttp.responseText);
                        
                        
                        if(type == 99999 || type == 99999){
                            
                            
                             for (var i = 0; i < res.length; i++){
                                var data_info = res[i];
                                
                                 var data = `<li style="max-width: 95%; min-width: 95%; margin: auto;margin-top:10px; flex: 1;" data-id="`+data_info.id+`" data-src="" data-money="`+data_info.money+`" data-name ="`+data_info.name+`" data-target="#pay_dialog" data-url="`+data_info.dwz+`" class="video-item" >
                                    <div class="video_img" style="position:relative"> 
                                     
                                          <div style="position: relative; width: 100%; height: 150px;background:black;border-radius:5px;">
                                          
                                          <img id="image01" class="cover" src="" src2="`+data_info.photo+`"  onerror='resetImgUrl(this,3)' data-src="" width="100%" height="150" style="background:black;display:none;border-radius:5px;"/>
                                          
                                        </div>
                                     <span class="tag" style="border-radius:5px;;padding: 0px 5px;font-size:8px;position: absolute;top: 0px;background:rgba(0, 0, 0, 0.3);word-spacing:0px;font-weight: normal">
                                          <span style="font-size:15px">▶</span>
                                         <span style="font-size:12px">`+data_info.times+`</span></span>
                                     <span class="tag" style="padding: 0px 5px;font-size:10px;border-radius:5px;position: absolute;top: 115px;background:rgba(0, 0, 0, 0.6);word-spacing:0px;font-weight: normal">已有`+data_info.d1+`<span style="color:#da3535;font-size:13px">`+data_info.money+`</span>元观看</span>
                                      
                                      <span class="tag" style="padding: 0px 5px;font-size:12px;position: absolute;top: 1px;background:rgba(0, 0, 0, 0.3);word-spacing:0px;font-weight: normal" >`+data_info.count+`</span>
                                      
                                    </div>
                                    <div class="video_title" style="font-size: 17px; overflow: hidden;border-radius:5px;">
                                        
                                   <p style="color: #FFFFFF;  border-radius:8px; background-image: linear-gradient(to right ,#d66b80,#e66982);font-size: 17px;font-weight:500;border: solid 1px 	#A9A9A9;display:block;height:42px" href='javascript: void(0);' class="clamp-2"><span>`+data_info.fuhao+`</span>`+data_info.name+`</p>
                                    </div>
                                  </li>`;
                                    
                                var d1 = document.getElementById('article_list');
                                d1.insertAdjacentHTML('beforeend', data);
                            }
                            
                        }else{
                            
                            for (var i = 0; i < res.length; i++) {
                                var data_info = res[i];
                                var b = new Base64();
                                var str = b.decode(data_info.name);
                                var data = `<li style="max-width: 50%; min-width: 46%; margin: 0 1px 3px 3px; flex: 1;" data-id="`+data_info.id+`" data-src="" data-money="`+data_info.money+`" data-name ="`+str+`" data-target="#pay_dialog" data-url="`+data_info.dwz+`" class="video-item" >
                                    <div class="video_img" style="position:relative"> 
                                     
                                          <div style="position: relative; width: 100%; height: 130px;background:black;border-radius:5px;">
                                          
                                          <img id="image01" class="cover" src="" src2="`+data_info.photo+`"  onerror='resetImgUrl(this,3)' data-src="" width="100%" height="130" style="background:black;display:none;border-radius:5px;"/>
                                          
                                        </div>
                                        
                                       <span class="tag" style="border-radius:5px;;padding: 0px 5px;font-size:8px;position: absolute;top: 0px;background:rgba(0, 0, 0, 0.3);word-spacing:0px;font-weight: normal">
                                          <span style="font-size:15px">▶</span>
                                         <span style="font-size:12px">`+data_info.times+`</span></span>
                                      <span class="tag" style="padding: 0px 5px;font-size:10px;border-radius:5px;position: absolute;top: 115px;background:rgba(0, 0, 0, 0.6);word-spacing:0px;font-weight: normal">已有`+data_info.d1+`<span style="color:#da3535;font-size:13px">`+data_info.money+`</span>元观看</span>
                                      
                                      <span class="tag" style="padding: 0px 5px;font-size:12px;position: absolute;top: 1px;background:rgba(0, 0, 0, 0.3);word-spacing:0px;font-weight: normal" >`+data_info.count+`</span>
                                      
                                    </div>
                                    <div class="video_title" style="font-size: 17px; overflow: hidden;border-radius:5px;">
                                        
                                   <p style="color: #FFFFFF;  border-radius:8px; background-image: linear-gradient(to right ,#d66b80,#e66982);font-size: 17px;font-weight:500;border: solid 1px 	#A9A9A9;display:block;height:42px" href='javascript: void(0);' class="clamp-2">`+str+`</p>
                                    </div>
                                  </li>`;
                                    
                                var d1 = document.getElementById('article_list');
                                d1.insertAdjacentHTML('beforeend', data);
                            }
                            
                        }
                      
                    }
                }
                xmlhttp.open("GET", url, true);
                xmlhttp.send();
            }

            var scrollFunc = function (e) {
                var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
                var windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
                var scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight;
                console.log('scrollHeight ' + scrollHeight + '  windowHeight' + windowHeight + ' scrollTop' + scrollTop);
                var scrollBottom = scrollHeight - windowHeight - scrollTop;
                console.log('scrollBottom ' + scrollBottom);
               
                if ((scrollBottom <= 1) ) {
                    console.log('append begin');
                    page += 1;
                    loadXMLDoc2(1, page);
                }
            }
            window.onscroll = window.onscroll = scrollFunc;


</script>   

<script src="/static/index/jquery-weui.js" charset="UTF-8"></script>




<div id="dg" style="z-index: 999;position: fixed ! important;left: 0;bottom: 0;width: 100%;background-image: linear-gradient(to right ,#d66b80,#e66982);color: #fff;font-size: 16px;display: flex;height: 40px;justify-content:center;">
    <a class="item btn1" href="javascript:void(0);" data-mid="160" style="line-height:30px;color:#000;margin: 4px 20px;width:70px;top:50%;color:#ffffff;margin-right: 25px;">
        <span style="font-weight: 1000;">精品热门</span>
    </a>
    <a class="item btn btns" href="javascript:void(0);" data-mid="1000" style="line-height:30px;color:#000;margin: 4px 40px;width:70px;top:50%;border-radius:5px;margin-left: 12px;">
        <span style="font-weight: 1000;">✚已购买</span>
    </a>
    <a class="item" href="javascript:void(0);" onclick="topFunction()">返回顶部</a>
</div>
<script>
    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        WeixinJSBridge.call('hideOptionMenu');
    });
    
    
    function topFunction() {
        document.body.scrollTop = 0;
        document.documentElement.scrollTop = 0;
    }
    
</script>

</body>
</html>